<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta name="generator" content="PSPad editor, www.pspad.com">
  <title></title>
  <script type="text/javascript">
    window.FBL = {};
    window.onload = function()
    {
        with(FBL)
        {
            var parentNode = document.getElementById("out");
            
            // --------------------------------------------------------------
            // DomPlate test goes here
            // --------------------------------------------------------------
            var searchResult = {
              title: "corvete.jpg",
              summary: "Chevrolet Corvette",
              url: "http://www.vu.union.edu/~jaquezk/MG/corvette.jpg",
              clickUrl: "http://www.vu.union.edu/~jaquezk/MG/corvette.jpg",
              RefererUrl: "http://www.neiu.edu/~ssalas/FramePage.htm",
              FileSize: 103936,
              FileFormat: "jpeg",
              Height: 768,
              Width: 1024
            };
            
            var template = domplate(
            {
              tag:
                TABLE(
                  FOR("member", "$object|getMembers",
                    TR(
                      TD("$member.label"),
                      TD("$member.value")
                    )
                  )
                ),
            
              getMembers: function(object) {
                var members = [];
                for (var p in object)
                  members.push({label: p, value: object[p]})
                return members;
              }
            });

            template.tag.replace({object: searchResult}, parentNode, template);
            // --------------------------------------------------------------
        }    
    }    
  </script>
  <script src="../../content/firebug/domplate.js" type="text/javascript"></script>
  </head>
  <body>
  
  <h1 id="header">DomPlate Test</h1>
  <div id="comment"><i>This is just a test file</i><hr/></div>
  <div id="out"></div>

  </body>
</html>
